package com.zzyx.service;

import java.util.List;
import java.util.Map;

import com.zzyx.bean.Admin;
import com.zzyx.bean.Uuser;

public interface UserService
{
	public void save(Uuser user);

	public void delete(Uuser user);

	public void deleteById(Integer id);

	public void update(Uuser user);
	public boolean isExistSameProperty(Map param);

	public Uuser findById(Integer id);

	public List<Uuser> findAll();

	public List<Uuser> findByCondition(Map param, int type);
	
	public List<Uuser> findByProperty(Class<Uuser> entityClass,
			String propertyName, Object value, int type);

	public Uuser checkLogin(Uuser user);

	public Admin checkAdmin(Admin admin);

	public List<Uuser> findByHql(String string);

	public List<Uuser> findByHql(String string, int parseInt, int parseInt2);
	public Uuser findUniqueResult(final String sql);
}
